package com.penglecode.protobuff.bean;

public class OrderItem {

	private long orderId;
	
	private long orderItemId;
	
	private Long productId;
	
	private String productName;
	
	private double unitPrice;
	
	private Integer buyNum;
	
	private double totalAmount;

	public long getOrderId() {
		return orderId;
	}

	public void setOrderId(long orderId) {
		this.orderId = orderId;
	}

	public long getOrderItemId() {
		return orderItemId;
	}

	public void setOrderItemId(long orderItemId) {
		this.orderItemId = orderItemId;
	}

	public Long getProductId() {
		return productId;
	}

	public void setProductId(Long productId) {
		this.productId = productId;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public double getUnitPrice() {
		return unitPrice;
	}

	public void setUnitPrice(double unitPrice) {
		this.unitPrice = unitPrice;
	}

	public Integer getBuyNum() {
		return buyNum;
	}

	public void setBuyNum(Integer buyNum) {
		this.buyNum = buyNum;
	}

	public double getTotalAmount() {
		return totalAmount;
	}

	public void setTotalAmount(double totalAmount) {
		this.totalAmount = totalAmount;
	}

	public String toString() {
		return "OrderItem [orderId=" + orderId + ", orderItemId=" + orderItemId
				+ ", productId=" + productId + ", productName=" + productName
				+ ", unitPrice=" + unitPrice + ", buyNum=" + buyNum
				+ ", totalAmount=" + totalAmount + "]";
	}
	
}
